package com.sjksy.demo.msmapper.Customer;

import com.sjksy.demo.domain.CustomerInformation;
import com.sjksy.demo.dto.ledger.LedgerInsertDto;
import com.sjksy.demo.vo.customerInformation.CustomerResponseVo;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * ClassName: CustomerMsMapper
 * Package: com.sjksy.demo.msmapper.Customer
 * Description:
 *
 * @Author 谢依雯
 * @Create 2024/12/16 21:45
 */
@Mapper(componentModel = "spring")
public interface CustomerMsMapper {
    List<CustomerResponseVo> EntityToCusVO (List<CustomerInformation> customerInformation);

//    顾客的插入，得要vo，dto，entity的转换了，vo分两个方向转映射到两个dto，然后两个dto各自补充完整未映射完的信息，再转到entity
//    在这个顾客模块的service层，调用我分账模块的service层，把vo映射完的dto传过来就行了，补充信息我那边来补充
//    其实这里应该是调用异步接口或者消息队列才是正解
}
